package com.springboot.wisdom.common.common.constant;

import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.ToString;

/**
 * ClassName: LoginTypeEnum
 *
 * @Date: 2021/9/16 19:04
 * @Description: TODO
 */
@ApiModel(description = "登录类型")
@Getter
@ToString
public enum LoginTypeEnum implements BaseValueEnum {
    @ApiModelProperty("用户密码")
    @JsonEnumDefaultValue   // 默认值，与 JackSonConfig 配合使用。
    USER_PASS("USER_PASS", "用户名密码"),
    IC_CARD("IC_CARD", "ic卡登入"),
    TOUCH("TOUCH", "指纹")
            ;

    private final String value;
    private final String desc;

    LoginTypeEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}